package com.project.grenting;

public class Test
{
    static int result = 1 ;
    static int num = 7 ;

    public static int cheng(int n) {
        if(n > 0) {
            result *= n ;
            num-- ;
            cheng(num) ;
        }
        return result ;
    }

    public static void main(String[] args) {
        System.out.println(Test.cheng(num));
    }
}
